import home from "./components/home.vue";
import user from './components/user/user.vue';
import news from './components/news/news.vue';
import classify from './components/classify/classify.vue';
import upload from './components/upload/upload.vue';
import comment from './components/comment/comment.vue';

export const routes = [
    {
        path:'/',
        components:{
            default:home,
    },name:'home'},
    {
        path:'/user',
        components:{
            default:user,
    }},
    {
        path:'/news',
        components:{
            default:news,
    }},
    {
        path:'/calssify',
        components:{
            default:classify,
    }},
    {
        path:'/upload',
        components:{
            default:upload,
    }},
    {
        path:'/comment/:id',
        components:{
            default:comment,
    }},
]